home *** CD-ROM | disk | FTP | other *** search
- ; INSTALL NEW PRINTER
-
- ; Start string definitions
- (set #Welcome-Pirate
- (cat "\nWillkommen zur neuen Druckerinstallation\n\n"
- "Copyright (C) 1993 Digita International\n\n"
- "Einzelverkauf ist unzulässig!"
- ))
-
- (set #InsertDiskMsg
- (cat "Bitte legen Sie die Diskette ein:\n\n"
- ))
-
-
-
- (set #InsertAmigaDiskMsg
- (cat "Bitte legen Sie die Amiga Workbench Diskette ein:\n\n"
- ))
-
-
-
- (set #diskhelp
- (cat "\n Wenn Sie die richtige Diskette im Laufwerk haben und dennoch nicht fortfahren, "
- "können, ist der Name der Disk falsch. \n"
- " überprüfen Sie, ob der Name der Diskette Blanks oder `copy_of_` vor oder nach dem Namen enthält. \n\n\n"
- ))
-
- (set #WwDiskName
- (cat "Wordworth"
- ))
-
- (set #WwSystemDiskName
- (cat "WwSystem"
- ))
-
- (set #WwSystemMiscFiles
- (cat #WwSystemDiskName ":MiscFiles"
- ))
-
- (set #AmigaDriverDiskName
- (cat "Storage3.0"
- ))
-
- (set #AmigaDriverSource
- (cat #AmigaDriverDiskName ":printers"
- ))
-
-
- (set FontDest "FONTS:")
- (set DriverDest "DEVS:Printers")
-
- (set @default-dest "")
-
-
- ; Get Users Printer Choice
- (askdisk
- (prompt #InsertDiskMsg #WwSystemDiskName)
- (help #diskhelp)
- (dest #WwSystemDiskName)
- )
- (run "WwSystem:select WwSystem:WwPrinterList")
- (set ChosenDriver (getenv "wwDriver"))
-
- (complete 20)
- ; copy appropriate driver to destination
- ; Is it a driver we supply?
- ; If yes, get driver from Wordworth disk set,
- ; else get from Workbench Storage disks
- ; Ignore if a Postscript printer
-
- (if (NOT (= ChosenDriver "NoDriver"))
- (
- (if (NOT (= ChosenDriver "PostScript"))
- (
- ; Get drivers from Wordworth disks
- (set SourcePath #WwSystemMiscFiles)
-
- (if (NOT (= ChosenDriver "CanonBJ130"))
- (if (NOT (= ChosenDriver "CanonEpson"))
- (
- ; All other drivers from Workbench disks
- (set SourcePath #AmigaDriverSource)
- )
- )
- )
- ) ;end compound if
- ) ; end if not postscript
- ) ;end compund if
- )
-
- (complete 50)
- ; copy driver if not Postscript, not NoDriver and not already exists
- (if (NOT (= ChosenDriver "NoDriver"))
- (
- (if (NOT (exists (tackon DriverDest ChosenDriver)))
- (
- (if (= SourcePath #AmigaDriverSource)
- (askdisk
- (prompt #InsertAmigaDiskMsg #AmigaDriverDiskName)
- (help #diskhelp)
- (dest #AmigaDriverDiskName)
- )
- )
-
- (copyfiles
- (source SourcePath)
- (dest "T:")
- (pattern ChosenDriver)
- (nogauge)
- )
- )
- )
- )
- )
-
- (complete 70)
- ; Now copy fonts to T:
- (makedir "T:WwFonts")
-
- (if (= (expandpath FontDest) "Wordworth:Fonts")
- (askdisk
- (prompt #InsertDiskMsg #WwDiskName)
- (help #diskhelp)
- (dest #WwDiskName)
- )
- )
-
- (if (exists "ram:script")
- (
- (execute "ram:script")
-
- ;Lets copy fonts in T: to system fonts drawer
- (copyfiles
- (source "T:WwFonts")
- (dest FontDest)
- (all)
- )
- )
- )
-
- (if (exists (tackon "T:" ChosenDriver))
- (copyfiles
- (source "T:")
- (dest DriverDest)
- (pattern ChosenDriver)
- )
- )
-
-
-
- ;clean up ram disk
- (delete "RAM:script")
- (run "delete T:#? all")
-
- (complete 100)
-
- (exit)
-